import React from 'react';
import  '../../../../public/css/delevlop.css';

export default class CallDesc extends React.Component {
    render(){
        return (
            <div style={{ 'height': '100%' }} className="p20 userdtl">
                <div className="" style={{"padding":"15px 0","borderBottom":"1px solid #e9e9e9"}}>
					<span className="fsfw">API调用说明</span>
				</div>
                <h6 className="fontWL pt-10">（1）接口调用协议：HTTP</h6>
                <h6 className="fontWL pt-10">（2）接口相关参数</h6>
                <br/>
                <div className="clearfix b_d8dde1"><p className="width40fl">clientCode</p><p className="width60fl b_left">客户编码：jstelecom</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">desParam</p><p className="width60fl b_left">3Des加密的JSON格式参数</p></div>
                <div className="clearfix b_d8dde1 b_bottom"><p className="width40fl">strSign</p><p className="width60fl b_left">MD5签名，MD5（clientCode+desParam+key）</p></div>
                <h6 className="fontWL pt-10">注：clientCode为"jstelecom",3DES加密所需的KEY和IV，MD5签名时用到</h6>
                <h6 className="fontWL pt-10">（3）接口返回相关参数</h6>
                <h6 className="fontWL pt-10">{'样例：' + '{"errormsg":"SUCCESS","data":"{\"code\":\"200\",\"description\":\"服务调用成功\",\"result\":{\"status\":\"10000\",\"threeValidate\":\"302\"}}","errorcode":0}'}</h6>
                <h6 className="fontWL pt-10">返回的信息为JSON格式字符串</h6>
                <br/>
                <div className="clearfix b_d8dde1"><p className="width40fl">errorcode</p><p className="width60fl b_left">结果编码， 0：成功 非0：失败</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">errormsg</p><p className="width60fl b_left">调用结果说明</p></div>
                <div className="clearfix b_d8dde1 b_bottom"><p className="width40fl">data</p><p className="width60fl b_left">接口返回数据：一般为字符串或JSON字符串，具体需参考接口说明</p></div>
                <div className="clearfix" style={{ "padding": "15px 0", "borderBottom": "1px solid #e9e9e9" }}>
                    <span className="fsfw">API调用试例</span>
                </div>
                <h6 className="fontWL pt-10">（1）接口地址</h6>
                <h6 className="fontWL pt-10">{'http://132.228.28.82:8080/opmanage/interface/http/doCall.action'}</h6>
                <h6 className="fontWL pt-10">（2）请求参数</h6>
                <br/>
                <div className="clearfix b_d8dde1"><p className="width40fl">接口编码</p><p className="width60fl b_left">sCode</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">产品编码</p><p className="width60fl b_left">pCode</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">开发者Key</p><p className="width60fl b_left">key</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">开发者编码</p><p className="width60fl b_left">developer</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">用户编码</p><p className="width60fl b_left">user</p></div>
                <div className="clearfix b_d8dde1 b_bottom"><p className="width40fl">调用参数</p><p className="width60fl b_left">args</p></div>
                <br/>
                <h6 className="fontWL pt-10">（3）接口调用样例</h6>
                <br/>
                <div className="clearfix b_d8dde1"><p className="width40fl">原始参数</p><p className="width60fl b_left">{'{'}<br />{'"sCode":"bacBatchValidate,"'}<br />{'"pCode":"schoolUserTestProduct,"'}<br />{'"key":"12345,"'}<br />{'"developer":"developer,"'}<br />{'"user":"schoolUserTest,"'}<br />{'"args":{\"paras\":{\"batchparam\":[{\"METHOD\":[\"validateA\",\"validateB\"],\"mobileNbr\":[\"189147\",\"1111\"]}],\"syskey\":\"yourSyskey\"}}'}<br />{'}'}</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">clientCode</p><p className="width60fl b_left">jstelecom</p></div>
                <div className="clearfix b_d8dde1"><p className="width40fl">desParam</p><p className="width60fl b_left wbww">{'d0ZSHAIhupyaaLpESkDSLGQ2fwriztXn7hG9OqF+JSUTXMCnX8U0iaNWq+QGwtS7p1wJI48GM7MwRdJUSQX790Pp3N/ZBWOrvRMavocC9y7qCkqziD0ixTr1Tbk4ijyRu4sRTfQAdGaVPf2fMMMxWXwCk1NGlBzxON1z8fX8EvWkDa7nugl11recHTuURVjPe6n0pwgZ7Cf47P//1KIpdxFEnlSdjQJb8A94aVIsx0Ji7RtP7oMaHcvNyOGQE5BkqMbhy0jP1vIW+bWRekHbvMDjvfac+1YxP7AqVpG1E2no0BJ3MMcJGL/mucrOMyhTyXVuqC3Rr1ZaMt3cVGQV+Dw1zivFG+ox'}</p></div>
                <div className="clearfix b_d8dde1 b_bottom"><p className="width40fl">strSign</p><p className="width60fl b_left">{'928edadeb0d23b937dd5b63a2a018d53'}</p></div>
                <br/>
                <h6 className="fontWL pt-10">（4）接口返回样例</h6>
                <h6 className="fontWL pt-10">{'{"errormsg":"SUCCESS","data":"{\"code\":\"200\",\"description\":\"服务调用成功\",\"result\":{\"status\":\"10000\",\"batchResult\":[]}}","errorcode":0}'}</h6>
                <br /><br />
            </div>
        )
    }
}